package cn.kawa.basic.query;

import lombok.Data;

@Data
public class BaseQuery {
    //当前页
    private Integer currentPage = 1;
    //每页显示条数
    private Integer pageSize = 5;
    //关键字查询
    private String keyword;
    //limit 的参数  a=当前页起始下标  b=每页的条数
    public Integer getBegin(){
        return (this.currentPage-1)*this.pageSize;
    }

}
